import { FrontType } from '../types/types'
import { HyTableProps, SelectType } from '@/common/hy-table/typing'

function createtableConfig(): HyTableProps {
  return {
    propList: [
      {
        prop: 'name',
        slotName: 'name',
        label: '名称'
      },
      {
        prop: 'createDtm',
        label: '创建时间'
      },

      {
        prop: 'handler',
        slotName: 'handler',
        label: '操作',
        width: '200px'
      }
    ],
    requestURL: '/liveDict/page',
    searchForm: {
      type: FrontType.CAMERA
    },
    height: 520,
    showFooter: true,
    showIndexColumn: false,
    selectColumnType: SelectType.CHECKBOX
  }
}

export const tableConfig = computed(() => createtableConfig())
